<?php
namespace App\Api\Requests;

use Illuminate\Validation\Rule;

class PayRequest extends BaseRequest{
    public function authorize(){
        return true;
    }

    public function rules(){
        return [
            'integral' => ['required', 'min:0.01', new \App\Api\Rules\PayNumberVerify]
        ];
    }

    public function messages(){
        return [
            'integral.required'=> '请选择积分数量',
            'integral.min'=> '积分数量必须大于0',
        ];
    }
}